@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">

            <input type="hidden" id="id" value="${item.id}">
            <input type="hidden" id="contentVal" value='${item.contents}'>
            <input type="hidden" id="isdefaultVal" value='${item.isdefault}'>
            <div class="row">
                <div class="col-sm-12">
                    <#input id="name" name="名称" value="${item.name}" underline="true"/>
                    <#input id="address" name="地址" value="${item.address}" underline="true" />
                    <#input id="phone" name="电话" value="${item.phone}" underline="true"/>
                    <#input id="description" name="描述" value="${item.description}" underline="true"/>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">文本信息</label>
                        <div class="col-sm-10">
                            <div id="contents" class="editorHeight">
                            </div>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">当前显示</label>
                        <div class="col-sm-10">
                            <select class="form-control" id="isdefault" name="isdefault">
                                <option value="0">是</option>
                                <option value="1">否</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-12" style="text-align: center">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check"
                    clickFun="CompanyInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="CompanyInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script type="text/javascript" src="//unpkg.com/wangeditor/release/wangEditor.min.js"></script>
<script src="${ctxPath}/static/modular/company/company/company_info.js"></script>
@}
